Loading TOC...

MarkLogic Server 11.0 Product Documentation
DELETE /manage/v2/databases/{id|name}/partitions/{name}

Summary

Delete the partition identified by {name} from the database identified by {id|name}.

URL Parameters
delete-data Whether or not to also delete the data in the partition. Default: false. When this parameter is false, the partition configuration is deleted but any data stored in the forests is preserved on disk.
Request Headers
Accept The expected MIME type of the response. If the format parameter is present, it takes precedence over the Accept header. Supported values: application/xml, application/json.

Response

MarkLogic server returns status code 204 (No Content).

Required Privileges

This operation requires the manage-admin role, or the following privilege:

http://marklogic.com/xdmp/privileges/manage-admin

Usage Notes

If delete-data is false, only configuration information is deleted. If delete-data is true, both configuration and the forest contents are deleted. For details, see admin:forest-delete.

Example


$ curl --anyauth --user user:password -X DELETE -i \
    http://localhost:8002/manage/v2/databases/example-db/partitions/2011

==> The partition named 2011 is deleted. The data it contained remains.
    MarkLogic Server responds with headers similar to the following:

HTTP/1.1 204 No Content
Server: MarkLogic
Content-Length: 0
Connection: Keep-Alive
Keep-Alive: timeout=5
    

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.